﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<EnterpriseManagement.Models.ProjectDetailsModel>>" %>
<%@ Import Namespace="EnterpriseManagement.Models"%>
<%@ Import Namespace="System.Web.Mvc"%>
<%@ Import Namespace="Webdiyer.WebControls.Mvc"%>
<%--<style type="text/css">
input[type="text"] 
{
	margin-left:auto;
    width: 100px;
    border: none;
}
</style>--%>
<div id="teammembers">
     <div id ="projectDetail" > 
        <%ProjectDetailsModel projectModel = Model.First();%>
        <table class ="noframe" >
        <tr>
            <td><%:Html.LabelFor(model => projectModel.ProjectName) %></td>  
            <td><%:Html.LabelFor(model => projectModel.ProjectType)%></td>
            <td><%:Html.LabelFor(model => projectModel.Importance)%></td>  
            <td><%:Html.LabelFor(model => projectModel.MainTechnology)%></td>   
            <td><%:Html.LabelFor(model => projectModel.StartTime)%></td>
            <td><%:Html.LabelFor(model => projectModel.EndTime)%></td>
            <td><%:Html.LabelFor(model => projectModel.BusinessField)%></td>
            <td><%:Html.LabelFor(model => projectModel.ClientName)%></td>
            <td><%:Html.LabelFor(model => projectModel.Department)%></td>
            <td><%:Html.LabelFor(model => projectModel.Manager)%></td>
            <td><%:Html.LabelFor(model => projectModel.NumberOfPeople)%></td>
            <td><%:Html.LabelFor(model => projectModel.ProjectStatus)%></td>
        </tr>
        <%foreach (ProjectDetailsModel model in Model)
          {%>
        <tr>
       <%-- <td ><%--<input type ="text" style ="border:none" value="2" />--%>
            <td class="display-field"><%: model.ProjectName  %></td> 
            <td class="display-field"><%: model.ProjectType%></td>
            <td class="display-field"><%: model.Importance%></td>
            <td class="display-field"><%: model.MainTechnology%></td>
            <td class="display-field"><%: model.StartTime%></td>
           <td class="display-field"><%: model.EndTime%></td>
            <td class="display-field"><%: model.BusinessField%></td>
            <td class="display-field"><%: model.ClientName%></td>
            <td class="display-field"><%: model.Department%></td>
            <td class="display-field"><%: model.Manager%></td>
            <td class="display-field"><%: model.NumberOfPeople%></td>
            <td class="display-field"><%: model.ProjectStatus%></td>
            <td id="tdnoline"><%:Ajax.ActionLink("项目成员", "TeamMember", new { projectName = model.ProjectName.Trim() }, new AjaxOptions { UpdateTargetId = "teammembers", HttpMethod = "GET" })%></td>
            <td id="tdnoline"><%:Ajax.ActionLink("编辑", "EditProject", new { id = model.ProjectName.Trim() }, new AjaxOptions { UpdateTargetId = "editProject", HttpMethod = "GET" })%></td>
        </tr>
        <%} %>
        </table>
        <div style ="text-align:center">
   <%=Ajax.Pager(Model,new PagerOptions(){PageIndexParameterName="id"},
                                             new AjaxOptions() { UpdateTargetId = "teammembers" })%>

   </div>

        <br />
        </div>

        <div id="editProject">
        
        </div>
        
    </div>
    


